//#define __FORCE_TRACE__
//#define __FORCE_DEBUG__
//#define __FORCE_INFO__
#define THIS_FILE "CQBTraining\fn_resetTargets.sqf"
#include <core_macros.h>

TRACE_1("Start",_this);
TMFPROFILERSTART;

if (!isServer) exitWith { TRACE("Not on server"); };
private ["_target","_up"];
TRACE_1("Targets",count GVAR(CQB_Targets));
{
	_target = _x;
	_up = _target getVariable ["IsUp",false];
	if (!_up) then {
		_target animate["terc", 0];
		_target setVariable["IsUp",true];
		_target setVariable["PopUp",-1];
	};
} foreach GVAR(CQB_Targets);

TRACE("End");
TMFPROFILERSTOP;
